using System.ComponentModel.DataAnnotations;
using Acme.ELeMe.SDK.Api;

namespace Acme.ELeMe.SDK.Request.Order;

public class OrderStateSyncReqDto : ElmSign
{
    public OrderStateSyncReqDto() : base("order.selfDeliveryStateSync")
    {
    }

    /// <summary>
    /// ID，固定值：201
    /// </summary>
    [Required]
    public const int distributor_id = 201;
    /// <summary>
    /// 骑手信息
    /// </summary>
    public Knight knight { get; set; }
    /// <summary>
    /// 订单id
    /// </summary>
    [Required] public string order_id { get; set; }
    /// <summary>
    /// 配送状态，传固定值：21 开始配送
    /// </summary>
    [Required] public const int state = 21;

}

public class Knight
{
    /// <summary>
    /// 骑手id，商家自定义
    /// </summary>
    public long id { get; set; }
    /// <summary>
    /// 骑手姓名
    /// </summary>
    public string? name { get; set; }
    /// <summary>
    /// 骑手手机号码
    /// </summary>
    [Required]
    public string? phone { get; set; }
}